package com.mproject.customclass;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable {
	private Student from;
	private boolean isSend;
	private String time;
	private String content;

	public Message (Student from, boolean isSend, String time, String content) {
		this.from = from;
		this.isSend = isSend;
		this.time = time;
		this.content = content;
	}
	public Message (boolean isSend, String content) {
		this.isSend = isSend;
		this.content = content;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	private String message;
	public Student getFrom() {
		return from;
	}
	public void setFrom(Student from) {
		this.from = from;
	}

	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	/**
	 * @return the isSend
	 */
	public boolean isSend() {
		return isSend;
	}
	/**
	 * @param isSend the isSend to set
	 */
	public void setSend(boolean isSend) {
		this.isSend = isSend;
	}
	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}
	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

}
